package client;

import java.io.Serializable;

import client.Client;

public class quit implements Serializable{
	String user;
	final public static int DEFAULT_PORT = 5555;  
    private String host = "MainPanel.ip";
    private Client c;
	
	/**
	 * @param user
	 */
	public quit() {
		super();
		this.c = new Client(host,DEFAULT_PORT);
	} 
	
	public quit(String user) {
		super();
		this.user = user;
	}
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	/**
	 * 
	 */
	public void closeWindow(){
		c.accept(this);
	}
}